package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * ClassName: SysRoleService
 * Package: com.atguigu.spzx.manager.service
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/1 16:29
 * @Version 1.0
 */
public interface SysRoleService {
    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteSysRoleById(Long id);

    /**
     * 查询所有角色
     * @return
     */
    Map<String, Object> findAllRoles(Long userId);

}
